package com.ly.common.core.utils;

import lombok.extern.slf4j.Slf4j;

/**
 * 公共工具类
 * @author luoyun
 * @Date: 2025/6/29 16:12
 * @Note:
 */
@Slf4j
public class CommonUtils {

    /**
     * 用户信息加密
     * @desc： PasswordUtil.encrypt(username, password, sysUser.getSalt())
     * @param userName
     * @param passWord
     * @param salt
     * @return
     */
    public static String getAesPassWord(String userName,String passWord,String salt){
        String data = userName + passWord + salt;
        String aesPassWord = AesEncryptUtil.encrypt(data);
        log.info("用户名:{},密码：{},胭脂：{},value:{}",userName,passWord,salt,aesPassWord);
        return aesPassWord;
    }
}
